package product

type ReportType string

var (
	ReportTypeSpec ReportType = "SPEC"
	ReportTypeCOS  ReportType = "COS"
	ReportTypeTest ReportType = "TEST"
)

type ChipParameterValue struct {
	ID            uint       `gorm:"primarykey"` // 主键ID
	ReportID      uint       `json:"report_id" form:"report_id" gorm:"index:idx_report,comment:测试报告ID"`
	ReportType    ReportType `json:"report_type" form:"report_type" gorm:"index:idx_report,comment:测试报告类型：COS、TEST、SPEC"`
	ItemID        string     `json:"item_id" form:"item_id" gorm:"comment:参数类型（Item）ID"`
	ParameterID   string     `json:"parameter_id" form:"parameter_id" gorm:"comment:参数（Parameter）ID"`
	TestCondition string     `json:"test_condition" form:"test_condition" gorm:"comment:测试条件（Test condition）"`
	MinValue      string     `json:"min_value" form:"min_value" gorm:"comment:最小值（minValue）"`
	TypicalValue  string     `json:"typical_value" form:"typical_value" gorm:"comment:典型值（TypicalValue）"`
	MaxValue      string     `json:"max_value" form:"max_value" gorm:"comment:最大值（minValue）"`
}
